$padding: 24;
$pd: $padding + px;

$media-sizes: (
  xs: 0px,
  sm: 280px,
  md: 580px,
  lg: 880px,
  xl: 1180px,
);

* {
  margin: 0;
  padding: 0;
  font-size: 15px;
  box-sizing: border-box;
  vertical-align: baseline;
  border: 0;

  &::after,
  &::before {
    box-sizing: border-box;
  }
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

main {
  display: block;
}

li {
  list-style-type: none;
}

span, input, textarea {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  font-stretch: inherit;
}

ul {
  margin-left: 0;
  padding-left: 0;
}

table {
  position: relative;
  border-collapse: separate;
  border-spacing: 0;
}

tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

th {
  display: table-cell;
  vertical-align: inherit;
  font-weight: 700;
  text-align: -internal-center;
}

td {
  display: table-cell;
  vertical-align: inherit;
  text-align: -internal-center;
}

.wrapper {
  position: relative;
  font-size: 0;
}

.container {
  max-width: map_get($media-sizes, "xl");
  margin: 0 auto;
  padding: 0 $padding + px;
}

.ibg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  img {
    display: none;
  }
}

.clearfix::after {
  display: table;
  clear: both;
  content: '';
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 19px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 13px;
}

h6 {
  font-size: 11px;
}

a {
  text-decoration: none;
}

@mixin flexbox() {
  display: flex;
  font-size: 0;
}

@mixin flexboxinline() {
  display: inline-flex;
}